
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class FriendshipFriendshipCfg : public ManualSingleton <FriendshipFriendshipCfg>
{
	friend ManualSingleton <FriendshipFriendshipCfg>;
public:
	FriendshipFriendshipCfg();
	~FriendshipFriendshipCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const FriendshipFriendshipCfgInfo *GetFriendshipFriendshipCfgInfo(int32_t id);
	const FriendshipFriendshipCfgMap *GetFriendshipFriendshipCfgMap() { return &m_FriendshipFriendshipCfgMap; }
private:
	FriendshipFriendshipCfgMap m_FriendshipFriendshipCfgMap;
};

#define  g_MakeFriendshipFriendshipCfgTable() (FriendshipFriendshipCfg::Instance())
#define  g_GetFriendshipFriendshipCfgTable() (FriendshipFriendshipCfg::GetInstance())
#define  g_DelFriendshipFriendshipCfgTable() (FriendshipFriendshipCfg::Destroy())